{foreach name="military_apply" item="military" key="mm"}

    <div class="card demo-card-header-pic">
        <div valign="bottom" class="card-header color-white no-border no-padding">
            <img class='card-cover' src="{$military['headimgurl']}" alt="">
            <a href="{:U('Apply/expert_page',array('id'=>$military['id']))}" class="button button-fill">预约</a>
        </div>
        <div class="card-content">
            <div class="card-content-inner">
                <p class="hot_list_title"><font class="name">{$military['user_name']}</font>  
                    [&nbsp;{switch name="military['type']"}
                    {case value="1"}军事专家{/case}
                    {case value="2"}国防专家{/case}
                    {case value="3"}医学专家{/case}
                    {/switch}&nbsp;]
                    {if condition="$military['collection'] eq 0"}
                    <span id="block" onclick="guanzhu(this, {$vo['id']})">关注</span>
                    <span style='color: #e88d00;display: none'>已关注</span>
                    {else/}
                    <span id="display" style='color: #e88d00;'>已关注</span>
                    {/if}
                </p>
                <a href="{:U('Apply/expert_page',array('id'=>$military['id']))}"><p class="card-text">{:mb_substr($military['signature'],0,50,'utf-8')}……</p></a>
                <p class="card-footer">
                    <span>好评<font>{$military['praise_number']}</font></span><span>浏览<font>{$military['visit_number']}</font></span>
                </p>
            </div>
        </div>
    </div>

{/foreach}